public class TestHashCode {
    public String name(){
        return "name";
    }
    public int max(){
        return 1;
    }
    public int hashCode(){
        int result = 31*this.name().hashCode()+this.max();
        return result;
    }

    public static void main(String[] args) {
        TestHashCode test1 = new TestHashCode();
        TestHashCode test2 = new TestHashCode();
        System.out.println(test1.hashCode());

    }
}
